package com.neusoft.neuiotms.dcam.fixed.dto;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.dto.AbstractDTO;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class AssetTypeDTO extends AbstractDTO {

    private static final long serialVersionUID = -8854546450387476252L;

    /** 资产类型名 */
    @NotBlank(message = "类型名不能为空")
    @Length(max = 255, message = "类型名不能超过{max}位")
    private String name;

    /** 资产类型编码 */
    @NotBlank(message = "资产类型编码不能为空")
    @Length(max = 255, message = "资产类型编码不能超过{max}位")
    private String code;

    private int sort;

    /** 父节点 ID */
    private Long parentId;

    /** 父节点名称 */
    private String parentName;

    /** 父节点编码 */
    private String parentCode;

    /** 父节点 */
    private AssetTypeDTO parent;

    /** 计量单位 */
    private String measureUnit;

}
